import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function Blacklist() {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/blacklist/getBlacklistByPage',
    method: 'post'
  })
}

export function SaveBlacklist(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/blacklist/addBlacklist',
    method: 'post',
    data: params
  })
}
export function DelBlacklist(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/blacklist/deleteBlacklist',
    method: 'get',
    params
  })
}
export function GetBlacklist(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/blacklist/findInterfaceById',
    method: 'get',
    params
  })
}
export function UpdateBlacklist(params) {
  return request({
    url: sysPath + '/hx-mart/api/v1/sys/blacklist/updateBlacklist',
    method: 'post',
    data: params
  })
}